home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 2001 May / SGI IRIX Base Documentation 2001 May.iso / usr / share / catman / p_man / cat3n / cap_socket.z / cap_socket
Encoding:
Text File  |  1998-10-20  |  2.0 KB  |  67 lines

  1.  
  2.  
  3.  
  4. CCCCAAAAPPPP____SSSSOOOOCCCCKKKKEEEETTTT((((3333NNNN))))                                                  CCCCAAAAPPPP____SSSSOOOOCCCCKKKKEEEETTTT((((3333NNNN))))
  5.  
  6.  
  7.  
  8. NNNNAAAAMMMMEEEE
  9.      cap_socket - create a socket with privilege
  10.  
  11. SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
  12.      ####iiiinnnncccclllluuuuddddeeee <<<<ccccaaaapppp____nnnneeeetttt....hhhh>>>>
  13.  
  14.      iiiinnnntttt ccccaaaapppp____ssssoooocccckkkkeeeetttt((((iiiinnnntttt ddddoooommmmaaaaiiiinnnn,,,, iiiinnnntttt ttttyyyyppppeeee,,,, iiiinnnntttt pppprrrroooottttooooccccoooollll))));;;;
  15.  
  16. DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  17.      _c_a_p__s_o_c_k_e_t asserts appropriate privilege for the creation of sockets with
  18.      privileged protocol types, like SSSSOOOOCCCCKKKK____RRRRAAAAWWWW or SSSSOOOOCCCCKKKK____IIIIGGGGMMMMPPPP ....
  19.  
  20.      If ____PPPPOOOOSSSSIIIIXXXX____CCCCAAAAPPPP is in effect, a process calling this function should have
  21.      CCCCAAAAPPPP____NNNNEEEETTTTWWWWOOOORRRRKKKK____MMMMGGGGTTTT capability in the permitted vector of its capability set.
  22.  
  23. RRRREEEETTTTUUUURRRRNNNN VVVVAAAALLLLUUUUEEEESSSS
  24.      _c_a_p__s_o_c_k_e_t returns a descriptor referencing the socket if successful, -1
  25.      otherwise.
  26.  
  27. EEEERRRRRRRROOOORRRRSSSS
  28.      _c_a_p__s_o_c_k_e_t has the same error codes as _s_o_c_k_e_t(2).
  29.  
  30. SSSSEEEEEEEE AAAALLLLSSSSOOOO
  31.      capability(4), socket(2), sysconf(3c).
  32.  
  33.  
  34.  
  35.  
  36.  
  37.  
  38.  
  39.  
  40.  
  41.  
  42.  
  43.  
  44.  
  45.  
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.                                                                         PPPPaaaaggggeeee 1111
  64.  
  65.  
  66.  
  67.